package com.umgsai.thread.thread06;

public class Sub extends Main { 
	@Override
	public void serviceMethod() {//不能继承同步
		try {
			System.out.println("Sub, ThreadName=" + Thread.currentThread().getName() + ",sleep begin time=" + System.currentTimeMillis());
			Thread.sleep(1000);
			System.out.println("Sub, ThreadName=" + Thread.currentThread().getName() + ",sleep end time=" + System.currentTimeMillis());
			super.serviceMethod();
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
}
